/*
 * Created with IDEA.
 * Description: A fully open-sourced high performance unibody close-loop driver for
 * Step-Motor, which was used in my DummyRobot project:
 * https://github.com/peng-zhihui/Dummy-Robot
 * Based on XDrive project: https://github.com/unlir/XDrive
 * @Author: Pengzhihui
 * @Date: ${DATE} ${TIME}
 *
 */

//
// Created by deng on 2022/12/25.
//
#include "bsp_led.h"

void led_init(void){
    GPIO_InitTypeDef GPIO_InitStr = {0};
    __GPIOC_CLK_ENABLE();
    __GPIOA_CLK_ENABLE();

    GPIO_InitStr.Pin = GPIO_PIN_13|GPIO_PIN_14;
    GPIO_InitStr.Mode = GPIO_MODE_OUTPUT_PP;
    GPIO_InitStr.Pull = GPIO_PULLDOWN;
    GPIO_InitStr.Speed = GPIO_SPEED_FREQ_HIGH;
    HAL_GPIO_Init(GPIOC,&GPIO_InitStr);


    GPIO_InitStr.Pin = GPIO_PIN_15;
    GPIO_InitStr.Mode = GPIO_MODE_OUTPUT_PP;
    GPIO_InitStr.Pull = GPIO_PULLDOWN;
    GPIO_InitStr.Speed = GPIO_SPEED_FREQ_HIGH;
    HAL_GPIO_Init(GPIOA,&GPIO_InitStr);
}
